"use strict";
cc._RF.push(module, '434cauRintLoJ03/Iuzulhy', 'BaseEntity');
// cases/entity/BaseEntity.ts

"use strict";
var __extends = (this && this.__extends) || (function () {
    var extendStatics = function (d, b) {
        extendStatics = Object.setPrototypeOf ||
            ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
            function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
        return extendStatics(d, b);
    };
    return function (d, b) {
        extendStatics(d, b);
        function __() { this.constructor = d; }
        d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
    };
})();
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
    var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
    if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
    else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
    return c > 3 && r && Object.defineProperty(target, key, r), r;
};
Object.defineProperty(exports, "__esModule", { value: true });
var ccclass = cc._decorator.ccclass;
var tempVec2 = cc.v2();
var BaseEntity = /** @class */ (function (_super) {
    __extends(BaseEntity, _super);
    function BaseEntity() {
        var _this = _super !== null && _super.apply(this, arguments) || this;
        _this.isPause = false;
        _this._id = -1;
        _this._radius = 30; //包围盒半径
        _this._position = cc.v2();
        _this._isTag = false;
        return _this;
    }
    BaseEntity_1 = BaseEntity;
    BaseEntity.prototype.gamePause = function (boo) {
        this.isPause = boo;
    };
    Object.defineProperty(BaseEntity.prototype, "ID", {
        get: function () {
            return this._id;
        },
        enumerable: false,
        configurable: true
    });
    /**
     *必须调用初始化
     * @memberof BaseEntity
     */
    BaseEntity.prototype.init = function () {
        this._id = BaseEntity_1.nextVaildID++;
    };
    Object.defineProperty(BaseEntity.prototype, "radius", {
        get: function () {
            return this._radius;
        },
        set: function (value) {
            this._radius = value;
        },
        enumerable: false,
        configurable: true
    });
    Object.defineProperty(BaseEntity.prototype, "position", {
        get: function () {
            cc.Vec2.set(this._position, this.node.x, this.node.y);
            return this._position;
        },
        enumerable: false,
        configurable: true
    });
    Object.defineProperty(BaseEntity.prototype, "isTag", {
        get: function () {
            return this._isTag;
        },
        set: function (value) {
            this._isTag = value;
        },
        enumerable: false,
        configurable: true
    });
    var BaseEntity_1;
    BaseEntity.nextVaildID = 1;
    BaseEntity = BaseEntity_1 = __decorate([
        ccclass
    ], BaseEntity);
    return BaseEntity;
}(cc.Component));
exports.default = BaseEntity;

cc._RF.pop();